import 'package:gameplay_flutter/generated/json/base/json_convert_content.dart';
import 'package:gameplay_flutter/lib_basemodel/discover/following_user_list_dto_entity.dart';
import 'package:gameplay_flutter/lib_basemodel/discover/moment_entity.dart';


FollowingUserListDtoEntity $FollowingUserListDtoEntityFromJson(Map<String, dynamic> json) {
  final FollowingUserListDtoEntity followingUserListDtoEntity = FollowingUserListDtoEntity();
  final int? total = jsonConvert.convert<int>(json['total']);
  if (total != null) {
    followingUserListDtoEntity.total = total;
  }
  final List<FollowingUserListDtoList>? list = (json['list'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<FollowingUserListDtoList>(e) as FollowingUserListDtoList).toList();
  if (list != null) {
    followingUserListDtoEntity.list = list;
  }
  return followingUserListDtoEntity;
}

Map<String, dynamic> $FollowingUserListDtoEntityToJson(FollowingUserListDtoEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['total'] = entity.total;
  data['list'] = entity.list.map((v) => v.toJson()).toList();
  return data;
}

extension FollowingUserListDtoEntityExtension on FollowingUserListDtoEntity {
  FollowingUserListDtoEntity copyWith({
    int? total,
    List<FollowingUserListDtoList>? list,
  }) {
    return FollowingUserListDtoEntity()
      ..total = total ?? this.total
      ..list = list ?? this.list;
  }
}

FollowingUserListDtoList $FollowingUserListDtoListFromJson(Map<String, dynamic> json) {
  final FollowingUserListDtoList followingUserListDtoList = FollowingUserListDtoList();
  final bool? hideRoomStatus = jsonConvert.convert<bool>(json['hideRoomStatus']);
  if (hideRoomStatus != null) {
    followingUserListDtoList.hideRoomStatus = hideRoomStatus;
  }
  final bool? specialAttention = jsonConvert.convert<bool>(json['specialAttention']);
  if (specialAttention != null) {
    followingUserListDtoList.specialAttention = specialAttention;
  }
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    followingUserListDtoList.id = id;
  }
  final MomentEntity? dynamicData = jsonConvert.convert<MomentEntity>(json['dynamic']);
  if (dynamicData != null) {
    followingUserListDtoList.dynamicData = dynamicData;
  }
  final dynamic dynamicVO = json['dynamicVO'];
  if (dynamicVO != null) {
    followingUserListDtoList.dynamicVO = dynamicVO;
  }
  final String? userCode = jsonConvert.convert<String>(json['userCode']);
  if (userCode != null) {
    followingUserListDtoList.userCode = userCode;
  }
  final FollowingUserListDtoListWealthInfo? wealthInfo = jsonConvert.convert<FollowingUserListDtoListWealthInfo>(
      json['wealthInfo']);
  if (wealthInfo != null) {
    followingUserListDtoList.wealthInfo = wealthInfo;
  }
  final bool? eachAttention = jsonConvert.convert<bool>(json['eachAttention']);
  if (eachAttention != null) {
    followingUserListDtoList.eachAttention = eachAttention;
  }
  final String? province = jsonConvert.convert<String>(json['province']);
  if (province != null) {
    followingUserListDtoList.province = province;
  }
  final String? headPortraitsUrl = jsonConvert.convert<String>(json['headPortraitsUrl']);
  if (headPortraitsUrl != null) {
    followingUserListDtoList.headPortraitsUrl = headPortraitsUrl;
  }
  final String? micFrameUrl = jsonConvert.convert<String>(json['micFrameUrl']);
  if (micFrameUrl != null) {
    followingUserListDtoList.micFrameUrl = micFrameUrl;
  }
  final String? userRemark = jsonConvert.convert<String>(json['userRemark']);
  if (userRemark != null) {
    followingUserListDtoList.userRemark = userRemark;
  }
  final String? onlineStr = jsonConvert.convert<String>(json['onlineStr']);
  if (onlineStr != null) {
    followingUserListDtoList.onlineStr = onlineStr;
  }
  final String? platformAuthUrl = jsonConvert.convert<String>(json['platformAuthUrl']);
  if (platformAuthUrl != null) {
    followingUserListDtoList.platformAuthUrl = platformAuthUrl;
  }
  final String? imId = jsonConvert.convert<String>(json['imId']);
  if (imId != null) {
    followingUserListDtoList.imId = imId;
  }
  final int? type = jsonConvert.convert<int>(json['type']);
  if (type != null) {
    followingUserListDtoList.type = type;
  }
  final int? userId = jsonConvert.convert<int>(json['userId']);
  if (userId != null) {
    followingUserListDtoList.userId = userId;
  }
  final String? emblemUrl = jsonConvert.convert<String>(json['emblemUrl']);
  if (emblemUrl != null) {
    followingUserListDtoList.emblemUrl = emblemUrl;
  }
  final String? nobleName = jsonConvert.convert<String>(json['nobleName']);
  if (nobleName != null) {
    followingUserListDtoList.nobleName = nobleName;
  }
  final String? about = jsonConvert.convert<String>(json['about']);
  if (about != null) {
    followingUserListDtoList.about = about;
  }
  final dynamic fromUserId = json['fromUserId'];
  if (fromUserId != null) {
    followingUserListDtoList.fromUserId = fromUserId;
  }
  final bool? online = jsonConvert.convert<bool>(json['online']);
  if (online != null) {
    followingUserListDtoList.online = online;
  }
  final dynamic h5MicFrameUrl = json['h5MicFrameUrl'];
  if (h5MicFrameUrl != null) {
    followingUserListDtoList.h5MicFrameUrl = h5MicFrameUrl;
  }
  final dynamic total = json['total'];
  if (total != null) {
    followingUserListDtoList.total = total;
  }
  final String? country = jsonConvert.convert<String>(json['country']);
  if (country != null) {
    followingUserListDtoList.country = country;
  }
  final String? activeTime = jsonConvert.convert<String>(json['activeTime']);
  if (activeTime != null) {
    followingUserListDtoList.activeTime = activeTime;
  }
  final dynamic userMoodInfo = json['userMoodInfo'];
  if (userMoodInfo != null) {
    followingUserListDtoList.userMoodInfo = userMoodInfo;
  }
  final dynamic toUserId = json['toUserId'];
  if (toUserId != null) {
    followingUserListDtoList.toUserId = toUserId;
  }
  final dynamic sortNumber = json['sortNumber'];
  if (sortNumber != null) {
    followingUserListDtoList.sortNumber = sortNumber;
  }
  final int? lastMemberExp = jsonConvert.convert<int>(json['lastMemberExp']);
  if (lastMemberExp != null) {
    followingUserListDtoList.lastMemberExp = lastMemberExp;
  }
  final dynamic dynamicInfo = json['dynamicInfo'];
  if (dynamicInfo != null) {
    followingUserListDtoList.dynamicInfo = dynamicInfo;
  }
  final String? visitTime = jsonConvert.convert<String>(json['visitTime']);
  if (visitTime != null) {
    followingUserListDtoList.visitTime = visitTime;
  }
  final dynamic fanClubLogo = json['fanClubLogo'];
  if (fanClubLogo != null) {
    followingUserListDtoList.fanClubLogo = fanClubLogo;
  }
  final int? age = jsonConvert.convert<int>(json['age']);
  if (age != null) {
    followingUserListDtoList.age = age;
  }
  final String? imPsw = jsonConvert.convert<String>(json['imPsw']);
  if (imPsw != null) {
    followingUserListDtoList.imPsw = imPsw;
  }
  final String? emblemSimpleUrl = jsonConvert.convert<String>(json['emblemSimpleUrl']);
  if (emblemSimpleUrl != null) {
    followingUserListDtoList.emblemSimpleUrl = emblemSimpleUrl;
  }
  final FollowingUserListDtoListPopularityInfo? popularityInfo = jsonConvert.convert<
      FollowingUserListDtoListPopularityInfo>(json['popularityInfo']);
  if (popularityInfo != null) {
    followingUserListDtoList.popularityInfo = popularityInfo;
  }
  final dynamic decorationsHeadFrameUrl = json['decorationsHeadFrameUrl'];
  if (decorationsHeadFrameUrl != null) {
    followingUserListDtoList.decorationsHeadFrameUrl = decorationsHeadFrameUrl;
  }
  final dynamic nobleBackgroundUrl = json['nobleBackgroundUrl'];
  if (nobleBackgroundUrl != null) {
    followingUserListDtoList.nobleBackgroundUrl = nobleBackgroundUrl;
  }
  final dynamic roomInfo = json['roomInfo'];
  if (roomInfo != null) {
    followingUserListDtoList.roomInfo = roomInfo;
  }
  final String? nickname = jsonConvert.convert<String>(json['nickname']);
  if (nickname != null) {
    followingUserListDtoList.nickname = nickname;
  }
  final dynamic virtualMemberExp = json['virtualMemberExp'];
  if (virtualMemberExp != null) {
    followingUserListDtoList.virtualMemberExp = virtualMemberExp;
  }
  final int? gender = jsonConvert.convert<int>(json['gender']);
  if (gender != null) {
    followingUserListDtoList.gender = gender;
  }
  final dynamic friendInfo = json['friendInfo'];
  if (friendInfo != null) {
    followingUserListDtoList.friendInfo = friendInfo;
  }
  final String? city = jsonConvert.convert<String>(json['city']);
  if (city != null) {
    followingUserListDtoList.city = city;
  }
  final int? memberLevel = jsonConvert.convert<int>(json['memberLevel']);
  if (memberLevel != null) {
    followingUserListDtoList.memberLevel = memberLevel;
  }
  final bool? hideActiveTime = jsonConvert.convert<bool>(json['hideActiveTime']);
  if (hideActiveTime != null) {
    followingUserListDtoList.hideActiveTime = hideActiveTime;
  }
  final String? memberHeadPortrail = jsonConvert.convert<String>(json['memberHeadPortrail']);
  if (memberHeadPortrail != null) {
    followingUserListDtoList.memberHeadPortrail = memberHeadPortrail;
  }
  final String? mobile = jsonConvert.convert<String>(json['mobile']);
  if (mobile != null) {
    followingUserListDtoList.mobile = mobile;
  }
  final dynamic memberEmblem = json['memberEmblem'];
  if (memberEmblem != null) {
    followingUserListDtoList.memberEmblem = memberEmblem;
  }
  final dynamic fanGroupIcon = json['fanGroupIcon'];
  if (fanGroupIcon != null) {
    followingUserListDtoList.fanGroupIcon = fanGroupIcon;
  }
  final int? nobleRankCode = jsonConvert.convert<int>(json['nobleRankCode']);
  if (nobleRankCode != null) {
    followingUserListDtoList.nobleRankCode = nobleRankCode;
  }
  final dynamic richerInfo = json['richerInfo'];
  if (richerInfo != null) {
    followingUserListDtoList.richerInfo = richerInfo;
  }
  final dynamic memberExp = json['memberExp'];
  if (memberExp != null) {
    followingUserListDtoList.memberExp = memberExp;
  }
  return followingUserListDtoList;
}

Map<String, dynamic> $FollowingUserListDtoListToJson(FollowingUserListDtoList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['hideRoomStatus'] = entity.hideRoomStatus;
  data['specialAttention'] = entity.specialAttention;
  data['id'] = entity.id;
  data['dynamic'] = entity.dynamicData.toJson();
  data['dynamicVO'] = entity.dynamicVO;
  data['userCode'] = entity.userCode;
  data['wealthInfo'] = entity.wealthInfo.toJson();
  data['eachAttention'] = entity.eachAttention;
  data['province'] = entity.province;
  data['headPortraitsUrl'] = entity.headPortraitsUrl;
  data['micFrameUrl'] = entity.micFrameUrl;
  data['userRemark'] = entity.userRemark;
  data['onlineStr'] = entity.onlineStr;
  data['platformAuthUrl'] = entity.platformAuthUrl;
  data['imId'] = entity.imId;
  data['type'] = entity.type;
  data['userId'] = entity.userId;
  data['emblemUrl'] = entity.emblemUrl;
  data['nobleName'] = entity.nobleName;
  data['about'] = entity.about;
  data['fromUserId'] = entity.fromUserId;
  data['online'] = entity.online;
  data['h5MicFrameUrl'] = entity.h5MicFrameUrl;
  data['total'] = entity.total;
  data['country'] = entity.country;
  data['activeTime'] = entity.activeTime;
  data['userMoodInfo'] = entity.userMoodInfo;
  data['toUserId'] = entity.toUserId;
  data['sortNumber'] = entity.sortNumber;
  data['lastMemberExp'] = entity.lastMemberExp;
  data['dynamicInfo'] = entity.dynamicInfo;
  data['visitTime'] = entity.visitTime;
  data['fanClubLogo'] = entity.fanClubLogo;
  data['age'] = entity.age;
  data['imPsw'] = entity.imPsw;
  data['emblemSimpleUrl'] = entity.emblemSimpleUrl;
  data['popularityInfo'] = entity.popularityInfo.toJson();
  data['decorationsHeadFrameUrl'] = entity.decorationsHeadFrameUrl;
  data['nobleBackgroundUrl'] = entity.nobleBackgroundUrl;
  data['roomInfo'] = entity.roomInfo;
  data['nickname'] = entity.nickname;
  data['virtualMemberExp'] = entity.virtualMemberExp;
  data['gender'] = entity.gender;
  data['friendInfo'] = entity.friendInfo;
  data['city'] = entity.city;
  data['memberLevel'] = entity.memberLevel;
  data['hideActiveTime'] = entity.hideActiveTime;
  data['memberHeadPortrail'] = entity.memberHeadPortrail;
  data['mobile'] = entity.mobile;
  data['memberEmblem'] = entity.memberEmblem;
  data['fanGroupIcon'] = entity.fanGroupIcon;
  data['nobleRankCode'] = entity.nobleRankCode;
  data['richerInfo'] = entity.richerInfo;
  data['memberExp'] = entity.memberExp;
  return data;
}

extension FollowingUserListDtoListExtension on FollowingUserListDtoList {
  FollowingUserListDtoList copyWith({
    bool? hideRoomStatus,
    bool? specialAttention,
    int? id,
    MomentEntity? dynamicData,
    dynamic dynamicVO,
    String? userCode,
    FollowingUserListDtoListWealthInfo? wealthInfo,
    bool? eachAttention,
    String? province,
    String? headPortraitsUrl,
    String? micFrameUrl,
    String? userRemark,
    String? onlineStr,
    String? platformAuthUrl,
    String? imId,
    int? type,
    int? userId,
    String? emblemUrl,
    String? nobleName,
    String? about,
    dynamic fromUserId,
    bool? online,
    dynamic h5MicFrameUrl,
    dynamic total,
    String? country,
    String? activeTime,
    dynamic userMoodInfo,
    dynamic toUserId,
    dynamic sortNumber,
    int? lastMemberExp,
    dynamic dynamicInfo,
    String? visitTime,
    dynamic fanClubLogo,
    int? age,
    String? imPsw,
    String? emblemSimpleUrl,
    FollowingUserListDtoListPopularityInfo? popularityInfo,
    dynamic decorationsHeadFrameUrl,
    dynamic nobleBackgroundUrl,
    dynamic roomInfo,
    String? nickname,
    dynamic virtualMemberExp,
    int? gender,
    dynamic friendInfo,
    String? city,
    int? memberLevel,
    bool? hideActiveTime,
    String? memberHeadPortrail,
    String? mobile,
    dynamic memberEmblem,
    dynamic fanGroupIcon,
    int? nobleRankCode,
    dynamic richerInfo,
    dynamic memberExp,
  }) {
    return FollowingUserListDtoList()
      ..hideRoomStatus = hideRoomStatus ?? this.hideRoomStatus
      ..specialAttention = specialAttention ?? this.specialAttention
      ..id = id ?? this.id
      ..dynamicData = dynamicData ?? this.dynamicData
      ..dynamicVO = dynamicVO ?? this.dynamicVO
      ..userCode = userCode ?? this.userCode
      ..wealthInfo = wealthInfo ?? this.wealthInfo
      ..eachAttention = eachAttention ?? this.eachAttention
      ..province = province ?? this.province
      ..headPortraitsUrl = headPortraitsUrl ?? this.headPortraitsUrl
      ..micFrameUrl = micFrameUrl ?? this.micFrameUrl
      ..userRemark = userRemark ?? this.userRemark
      ..onlineStr = onlineStr ?? this.onlineStr
      ..platformAuthUrl = platformAuthUrl ?? this.platformAuthUrl
      ..imId = imId ?? this.imId
      ..type = type ?? this.type
      ..userId = userId ?? this.userId
      ..emblemUrl = emblemUrl ?? this.emblemUrl
      ..nobleName = nobleName ?? this.nobleName
      ..about = about ?? this.about
      ..fromUserId = fromUserId ?? this.fromUserId
      ..online = online ?? this.online
      ..h5MicFrameUrl = h5MicFrameUrl ?? this.h5MicFrameUrl
      ..total = total ?? this.total
      ..country = country ?? this.country
      ..activeTime = activeTime ?? this.activeTime
      ..userMoodInfo = userMoodInfo ?? this.userMoodInfo
      ..toUserId = toUserId ?? this.toUserId
      ..sortNumber = sortNumber ?? this.sortNumber
      ..lastMemberExp = lastMemberExp ?? this.lastMemberExp
      ..dynamicInfo = dynamicInfo ?? this.dynamicInfo
      ..visitTime = visitTime ?? this.visitTime
      ..fanClubLogo = fanClubLogo ?? this.fanClubLogo
      ..age = age ?? this.age
      ..imPsw = imPsw ?? this.imPsw
      ..emblemSimpleUrl = emblemSimpleUrl ?? this.emblemSimpleUrl
      ..popularityInfo = popularityInfo ?? this.popularityInfo
      ..decorationsHeadFrameUrl = decorationsHeadFrameUrl ?? this.decorationsHeadFrameUrl
      ..nobleBackgroundUrl = nobleBackgroundUrl ?? this.nobleBackgroundUrl
      ..roomInfo = roomInfo ?? this.roomInfo
      ..nickname = nickname ?? this.nickname
      ..virtualMemberExp = virtualMemberExp ?? this.virtualMemberExp
      ..gender = gender ?? this.gender
      ..friendInfo = friendInfo ?? this.friendInfo
      ..city = city ?? this.city
      ..memberLevel = memberLevel ?? this.memberLevel
      ..hideActiveTime = hideActiveTime ?? this.hideActiveTime
      ..memberHeadPortrail = memberHeadPortrail ?? this.memberHeadPortrail
      ..mobile = mobile ?? this.mobile
      ..memberEmblem = memberEmblem ?? this.memberEmblem
      ..fanGroupIcon = fanGroupIcon ?? this.fanGroupIcon
      ..nobleRankCode = nobleRankCode ?? this.nobleRankCode
      ..richerInfo = richerInfo ?? this.richerInfo
      ..memberExp = memberExp ?? this.memberExp;
  }
}

FollowingUserListDtoListWealthInfo $FollowingUserListDtoListWealthInfoFromJson(Map<String, dynamic> json) {
  final FollowingUserListDtoListWealthInfo followingUserListDtoListWealthInfo = FollowingUserListDtoListWealthInfo();
  final int? userId = jsonConvert.convert<int>(json['userId']);
  if (userId != null) {
    followingUserListDtoListWealthInfo.userId = userId;
  }
  final int? wealthValue = jsonConvert.convert<int>(json['wealthValue']);
  if (wealthValue != null) {
    followingUserListDtoListWealthInfo.wealthValue = wealthValue;
  }
  final int? topRank = jsonConvert.convert<int>(json['topRank']);
  if (topRank != null) {
    followingUserListDtoListWealthInfo.topRank = topRank;
  }
  final String? iconUrl = jsonConvert.convert<String>(json['iconUrl']);
  if (iconUrl != null) {
    followingUserListDtoListWealthInfo.iconUrl = iconUrl;
  }
  final dynamic minIconUrl = json['minIconUrl'];
  if (minIconUrl != null) {
    followingUserListDtoListWealthInfo.minIconUrl = minIconUrl;
  }
  final bool? isInvalid = jsonConvert.convert<bool>(json['isInvalid']);
  if (isInvalid != null) {
    followingUserListDtoListWealthInfo.isInvalid = isInvalid;
  }
  final int? levelCode = jsonConvert.convert<int>(json['levelCode']);
  if (levelCode != null) {
    followingUserListDtoListWealthInfo.levelCode = levelCode;
  }
  final String? groupName = jsonConvert.convert<String>(json['groupName']);
  if (groupName != null) {
    followingUserListDtoListWealthInfo.groupName = groupName;
  }
  final dynamic expansionCount = json['expansionCount'];
  if (expansionCount != null) {
    followingUserListDtoListWealthInfo.expansionCount = expansionCount;
  }
  final String? backgroundColor = jsonConvert.convert<String>(json['backgroundColor']);
  if (backgroundColor != null) {
    followingUserListDtoListWealthInfo.backgroundColor = backgroundColor;
  }
  final String? levelName = jsonConvert.convert<String>(json['levelName']);
  if (levelName != null) {
    followingUserListDtoListWealthInfo.levelName = levelName;
  }
  return followingUserListDtoListWealthInfo;
}

Map<String, dynamic> $FollowingUserListDtoListWealthInfoToJson(FollowingUserListDtoListWealthInfo entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userId'] = entity.userId;
  data['wealthValue'] = entity.wealthValue;
  data['topRank'] = entity.topRank;
  data['iconUrl'] = entity.iconUrl;
  data['minIconUrl'] = entity.minIconUrl;
  data['isInvalid'] = entity.isInvalid;
  data['levelCode'] = entity.levelCode;
  data['groupName'] = entity.groupName;
  data['expansionCount'] = entity.expansionCount;
  data['backgroundColor'] = entity.backgroundColor;
  data['levelName'] = entity.levelName;
  return data;
}

extension FollowingUserListDtoListWealthInfoExtension on FollowingUserListDtoListWealthInfo {
  FollowingUserListDtoListWealthInfo copyWith({
    int? userId,
    int? wealthValue,
    int? topRank,
    String? iconUrl,
    dynamic minIconUrl,
    bool? isInvalid,
    int? levelCode,
    String? groupName,
    dynamic expansionCount,
    String? backgroundColor,
    String? levelName,
  }) {
    return FollowingUserListDtoListWealthInfo()
      ..userId = userId ?? this.userId
      ..wealthValue = wealthValue ?? this.wealthValue
      ..topRank = topRank ?? this.topRank
      ..iconUrl = iconUrl ?? this.iconUrl
      ..minIconUrl = minIconUrl ?? this.minIconUrl
      ..isInvalid = isInvalid ?? this.isInvalid
      ..levelCode = levelCode ?? this.levelCode
      ..groupName = groupName ?? this.groupName
      ..expansionCount = expansionCount ?? this.expansionCount
      ..backgroundColor = backgroundColor ?? this.backgroundColor
      ..levelName = levelName ?? this.levelName;
  }
}

FollowingUserListDtoListPopularityInfo $FollowingUserListDtoListPopularityInfoFromJson(Map<String, dynamic> json) {
  final FollowingUserListDtoListPopularityInfo followingUserListDtoListPopularityInfo = FollowingUserListDtoListPopularityInfo();
  final int? userId = jsonConvert.convert<int>(json['userId']);
  if (userId != null) {
    followingUserListDtoListPopularityInfo.userId = userId;
  }
  final dynamic topRank = json['topRank'];
  if (topRank != null) {
    followingUserListDtoListPopularityInfo.topRank = topRank;
  }
  final dynamic iconUrl = json['iconUrl'];
  if (iconUrl != null) {
    followingUserListDtoListPopularityInfo.iconUrl = iconUrl;
  }
  final int? hotValue = jsonConvert.convert<int>(json['hotValue']);
  if (hotValue != null) {
    followingUserListDtoListPopularityInfo.hotValue = hotValue;
  }
  final bool? isInvalid = jsonConvert.convert<bool>(json['isInvalid']);
  if (isInvalid != null) {
    followingUserListDtoListPopularityInfo.isInvalid = isInvalid;
  }
  final int? levelCode = jsonConvert.convert<int>(json['levelCode']);
  if (levelCode != null) {
    followingUserListDtoListPopularityInfo.levelCode = levelCode;
  }
  final dynamic backgroundColor = json['backgroundColor'];
  if (backgroundColor != null) {
    followingUserListDtoListPopularityInfo.backgroundColor = backgroundColor;
  }
  final String? levelName = jsonConvert.convert<String>(json['levelName']);
  if (levelName != null) {
    followingUserListDtoListPopularityInfo.levelName = levelName;
  }
  return followingUserListDtoListPopularityInfo;
}

Map<String, dynamic> $FollowingUserListDtoListPopularityInfoToJson(FollowingUserListDtoListPopularityInfo entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userId'] = entity.userId;
  data['topRank'] = entity.topRank;
  data['iconUrl'] = entity.iconUrl;
  data['hotValue'] = entity.hotValue;
  data['isInvalid'] = entity.isInvalid;
  data['levelCode'] = entity.levelCode;
  data['backgroundColor'] = entity.backgroundColor;
  data['levelName'] = entity.levelName;
  return data;
}

extension FollowingUserListDtoListPopularityInfoExtension on FollowingUserListDtoListPopularityInfo {
  FollowingUserListDtoListPopularityInfo copyWith({
    int? userId,
    dynamic topRank,
    dynamic iconUrl,
    int? hotValue,
    bool? isInvalid,
    int? levelCode,
    dynamic backgroundColor,
    String? levelName,
  }) {
    return FollowingUserListDtoListPopularityInfo()
      ..userId = userId ?? this.userId
      ..topRank = topRank ?? this.topRank
      ..iconUrl = iconUrl ?? this.iconUrl
      ..hotValue = hotValue ?? this.hotValue
      ..isInvalid = isInvalid ?? this.isInvalid
      ..levelCode = levelCode ?? this.levelCode
      ..backgroundColor = backgroundColor ?? this.backgroundColor
      ..levelName = levelName ?? this.levelName;
  }
}